/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package queenb.net.entitybean;

import java.io.Serializable;
import oracle.jdbc.OracleTypes;
import queenb.net.annotation.Mapping;
import queenb.net.datacontrol.DataControl;

/**
 *
 * @author VANANH
 */
public class A000 extends DataControl<A000> implements Serializable{
     @Mapping(name = "pa000", typeMapping= OracleTypes.INTEGER)
    public int pa000;
     @Mapping(name = "fa000", typeMapping= OracleTypes.INTEGER)
    private int fa000;
    @Mapping(name = "av001", typeMapping = OracleTypes.CHAR)
    public String av001;
    @Mapping(name = "av002", typeMapping = OracleTypes.CHAR)
    public String av002;
    @Mapping(name = "av003", typeMapping = OracleTypes.CHAR)
    public String av003;
    @Mapping(name = "av004", typeMapping = OracleTypes.CHAR)
    public String av004;
    @Mapping(name = "fn750", typeMapping = OracleTypes.INTEGER)
    public int fn750;
    @Mapping(name = "val", typeMapping = OracleTypes.INTEGER)
    private int val;
    @Mapping(name = "label", typeMapping = OracleTypes.CHAR)
    private String label;
    @Mapping(name = "label1", typeMapping = OracleTypes.CHAR)
    private String label1;
    @Mapping(name = "nv754", typeMapping = OracleTypes.CHAR)
    private String nv754;
    
    private boolean selected;

    public String getAv001() {
        return av001;
    }

    public void setAv001(String av001) {
        this.av001 = av001;
    }

    public String getAv002() {
        return av002;
    }

    public void setAv002(String av002) {
        this.av002 = av002;
    }

    public String getAv003() {
        return av003;
    }

    public void setAv003(String av003) {
        this.av003 = av003;
    }

    public String getAv004() {
        return av004;
    }

    public void setAv004(String av004) {
        this.av004 = av004;
    }

    public int getFn750() {
        return fn750;
    }

    public void setFn750(int fn750) {
        this.fn750 = fn750;
    }

    public int getPa000() {
        return pa000;
    }

    public void setPa000(int pa000) {
        this.pa000 = pa000;
    }

    /**
     * @return the val
     */
    public int getVal() {
        return val;
    }

    /**
     * @param val the val to set
     */
    public void setVal(int val) {
        this.val = val;
    }

    /**
     * @return the label
     */
    public String getLabel() {
        return label;
    }

    /**
     * @param label the label to set
     */
    public void setLabel(String label) {
        this.label = label;
    }

    /**
     * @return the label1
     */
    public String getLabel1() {
        return label1;
    }

    /**
     * @param label1 the label1 to set
     */
    public void setLabel1(String label1) {
        this.label1 = label1;
    }

    /**
     * @return the selected
     */
    public boolean isSelected() {
        if(getFa000()!=0){
            selected = true;
        }else{
            selected = false;
        }
        System.out.println("---------------AAAAAAAA--" + selected);
        return selected;
    }

    /**
     * @param selected the selected to set
     */
    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    /**
     * @return the fa000
     */
    public int getFa000() {
        return fa000;
    }

    /**
     * @param fa000 the fa000 to set
     */
    public void setFa000(int fa000) {
        this.fa000 = fa000;
    }

    /**
     * @return the nv754
     */
    public String getNv754() {
        return nv754;
    }

    /**
     * @param nv754 the nv754 to set
     */
    public void setNv754(String nv754) {
        this.nv754 = nv754;
    }
}
